package com.springboot.cloud.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
/**
 * <p>
 * 
 * </p>
 *
 * @author Bertram
 * @since 2019-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("system_resource")
public class SystemResource extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 资源id
     */
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    private Integer menuId;

    /**
     * 资源code
     */
    private String resourceCode;

    /**
     * 资源类型
     */
    private String resourceType;

    /**
     * 资源名称
     */
    private String resourceName;

    /**
     * 资源url
     */
    private String resourceUrl;

    /**
     * 资源方法
     */
    private String resourceMethod;

    /**
     * 简介
     */
    private String description;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime createdDate;

    /**
     * 修改人
     */
    private String modifyBy;

    /**
     * 修改时间
     */
    private LocalDateTime modifyDate;

    /**
     * 是否删除
     */
    private Boolean deleted;

    /**
     * 版本号
     */
    private Integer version;


}
